package controller;

import java.io.IOException;
import javax.microedition.midlet.MIDlet;
import view.MobileView;
import view.View;

/**
 * The primary class that sets up interaction between the view and the model. It is responsible
 * for the instantiation of the tree of processes that will be starting the entire game.
 *
 * @author rhaq
 * @version 1.00 2009-05-09 Initial submission.
 */
public class Controller
{
	/** The GUI subsection of the system that will interact with the user. */
	private View view;


	/**
	 * Initializes the view and the model parts of the system. Sets up communication between
	 * the two subsystems.
	 * @param midlet The entry-point object that the view needs to interact with in case of system
	 * related calls.
	 * @throws IOException In case any of the required graphics could not be loaded.
	 */
	public Controller(MIDlet midlet) throws IOException
	{
		this.view = new MobileView(midlet);
	}
}